<?php if ($this->_var['best_goods']): ?>
<div class="fltj">
<?php if ($this->_var['cat_rec_sign'] != 1): ?>
  <h1><span class="title">分类推荐</span>
  <div class="fltj_menu" id="itemBest">
      <span><a href="javascript:void(0)" onclick="change_tab_style('itemBest', 'span', this);get_cat_recommend(1, 0);"><?php echo $this->_var['lang']['all_goods']; ?></a></span>
      <?php $_from = $this->_var['cat_rec']['1']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'rec_data');if (count($_from)):
    foreach ($_from AS $this->_var['rec_data']):
?>
      <span class="spanbg">
      <a href="javascript:void(0)" onclick="change_tab_style('itemBest', 'span', this);get_cat_recommend(1, <?php echo $this->_var['rec_data']['cat_id']; ?>)"><?php echo $this->_var['rec_data']['cat_name']; ?></a></span>
      <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  </div></h1>
 
  <div class="ad01"><img src="img/ad1.jpg" width="240" height="420" /></div> 
  <?php endif; ?>   
  <div id="show_best_area" class="fltj_con">
  <ul>     
   <?php $_from = $this->_var['best_goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods_0_51666700_1277092725');if (count($_from)):
    foreach ($_from AS $this->_var['goods_0_51666700_1277092725']):
?>
    <li>  
       <div class="pic">
          <a href="<?php echo $this->_var['goods_0_51666700_1277092725']['url']; ?>"><img src="<?php echo $this->_var['goods_0_51666700_1277092725']['thumb']; ?>" alt="<?php echo htmlspecialchars($this->_var['goods_0_51666700_1277092725']['name']); ?>" class="goodsimg" /></a>
       </div>
       <span class="title"><a href="<?php echo $this->_var['goods_0_51666700_1277092725']['url']; ?>" title="<?php echo htmlspecialchars($this->_var['goods_0_51666700_1277092725']['name']); ?>"><?php echo $this->_var['goods_0_51666700_1277092725']['short_style_name']; ?></a></span>
       <span class="price"><?php echo $this->_var['goods_0_51666700_1277092725']['shop_price']; ?></span>
    </li>
      <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  </ul>

</div>
</div>

<?php endif; ?>
